package com.yuntianshi.dao;

import com.yuntianshi.pojo.Order;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();

    public Page<Order> selectByCondition(String queryString);

    public Order findById(Integer id);

    public void statusUpdate(Order order);

    public void delete(Integer id);

    public void deleteBySetmealId(Integer id);

    public void updateFile(Order order);

    public List<Order> findByPhoneNumber(String telephone);
}